define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			//订单促销一览
			getList: function(nPage, callback, calldone) {
				Http.post({
					method: "marketing.promotion.getList",
					pagelimit: 10,
					nPage: nPage
				}, function(result) {
					if(callback)
						callback(result);
				}, function(e) {

				}, function() {
					if(calldone)
						calldone();
				})
			},           //删除
        	 pro_delete:function(act_id,callback){
            	Http.post({
            		method:"marketing.promotion.delete",
            		act_id:act_id
            	},function(result){
            		if(callback)
            			callback(result);
            	},function(e){

            	},function(){

            	})
            }

		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Proorder", factory);
});